package com.chillis.standings.domain;

import android.util.Pair;

import java.io.Serializable;

public class Match extends Pair<Participant, Participant> implements Serializable {
   public Match() {
      super(null, null);
   }

   private void updateWinner() {
      if (first == null && second != null) {
         _winner = second;
      } else if (first != null && second == null) {
         _winner = first;
      }
   }

   public Participant winner() {
      return _winner;
   }

   private Participant _winner = null;
}
